package com.yang.designmode.adapter;

public class Client {
    public static void main(String[] args) {
        // 使用对象适配器
        Adaptee adaptee = new Adaptee();
        Target target = new ObjectAdapter(adaptee);
        target.request();  // 输出: Adaptee's specific request.

        // 使用类适配器
        Target classAdapter = new ClassAdapter();
        classAdapter.request();  // 输出: Adaptee's specific request.
    }
}
